package com.example.myspringboot.web;

import com.example.myspringboot.anno.Loggable;
import com.example.myspringboot.service.peiz.PeiZhiSerivce;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author cy
 * @date 2024/5/23
 */
@RequestMapping("/peiz")
@RestController
@RequiredArgsConstructor
@Slf4j
public class PeiZhiController {
    private final PeiZhiSerivce peiZhiSerivce;

    @RequestMapping(value = "/find/info", method = RequestMethod.POST)
    public String getPeiZhiInfo(@RequestBody String str) {
        return peiZhiSerivce.getPeiZhiInfo(str);
    }
}
